#include <vector>

using namespace std;

class Solution {
public:
    bool isArraySpecial(vector<int>& nums)
    {
        int  n = nums.size();
        for (int i = 1; i < n; i++)
        {
            if (((nums[i] ^ nums[i - 1]) & 1) == 0)return false;
        }

        return true;
    }
};
